﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShowProducts.aspx.cs" Inherits="ProjektarbeteKlauserSwag.ShowProducts" MasterPageFile="~/Main.master"%>

<asp:Content ContentPlaceHolderId="ContentPlaceHolderMain" runat="server">

        <div>
        <h1>Products:</h1>
            <p>
                <asp:ListBox ID="ListBoxArticles" runat="server" Height="110px" Width="320px" OnSelectedIndexChanged="ListBoxArticles_SelectedIndexChanged" AutoPostBack="True"></asp:ListBox>
<%--                <asp:SqlDataSource ID="ArticlesDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:Klauserswag %>" SelectCommand="SELECT [Text], [UnitPrice], [ArticleName], [ArticleID] FROM [Articles]"></asp:SqlDataSource>--%>
            </p>
            <p>
                <asp:Label ID="LabelQuantity" runat="server" Text="Quantity:"></asp:Label>
                <asp:TextBox ID="TextBoxQuantity" runat="server" Width="39px" TextMode="Number">1</asp:TextBox>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="ButtonAddToCart" runat="server" OnClick="ButtonAddToCart_Click" Text="Add to Cart" />
            </p>
            <p>
                <asp:Label ID="LabelSelectItems" runat="server" Text="You need to select an article!" Visible="False"></asp:Label>
            </p>
    </div>

    </asp:Content>

